package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.quwan.anno.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author quan
 * @date 2021-07-27 15:41
 */


@Data
@Accessors(chain = true)
@TableName(value = "t_spread_data")
public class TSpreadData {
    @Excel(name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("日期")
    @Excel(name = "日期",dateFormat = "yyyy-MM-dd")
    @TableField(value = "day")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date day;
    /**
     * 访问量
     */
    @ApiModelProperty("访问量")
    @Excel(name = "访问量")
    @TableField(value = "access")
    private Integer access;

    /**
     * 访问人数
     */
    @ApiModelProperty("访问人数")
    @Excel(name = "访问人数")
    @TableField(value = "visitor")
    private Integer visitor;

    @ApiModelProperty("注册人数")
    @Excel(name = "注册人数")
    @TableField(value = "register")
    private Integer register;

    @ApiModelProperty("登录人数")
    @Excel(name = "登录人数")
    @TableField(value = "login")
    private Integer login;

    @ApiModelProperty("充值vip")
    @Excel(name = "充值vip")
    @TableField(value = "vip")
    private Integer vip;

    /**
     * 提现
     */
    @ApiModelProperty("提现人数")
    @Excel(name = "提现人数")
    @TableField(value = "tranfer")
    private Integer tranfer;

    @ApiModelProperty("发单人数")
    @Excel(name = "发单人数")
    @TableField(value = "publish_order")
    private Integer publishOrder;

    @ApiModelProperty("接单人数")
    @Excel(name = "接单人数")
    @TableField(value = "consumer_order")
    private Integer consumerOrder;

    @ApiModelProperty("取消订单")
    @Excel(name = "取消订单")
    @TableField(value = "cancel_order")
    private Integer cancelOrder;

    @ApiModelProperty("余额充值")
    @Excel(name = "余额充值")
    @TableField(value = "balance")
    private Integer balance;

    @ApiModelProperty("活跃人数")
    @Excel(name = "活跃人数")
    @TableField(value = "active")
    private Integer active;

    @TableField(value = "add_time")
    private Date addTime;
}